package org.zsl.mqdemo.config;

import org.springframework.amqp.support.converter.AbstractJackson2MessageConverter;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


public class RabbitMQConfig {


    @Bean
    public  AbstractJackson2MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
